import {Mockjs} from "mockjs";

import {resultSuccess} from "./_util";

let data = {
    isAdmin: 1,
    auths: ['admin'],
    modules: ['admin'],
}

export default [
    {
        url:'/v1/permission',
        method:'get',
        response:()=>{
            return resultSuccess(data)
        }
    },
    {
        url:'/v1/login',
        method:'post',
        response:()=>{
            return resultSuccess('1234567890')
        }
    },
    {
        url:'/v1/logout',
        method:'post',
        response:()=>{
            return resultSuccess('success')
        }
    }
]
